package com.example.demo.BlockingQueue.ThreadPoll;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.TimeUnit;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-01-25
 * Time: 18:55
 */
@Slf4j(topic = "c.MyTestThreadPool")
public class MyTestThreadPool {

//    public static void main(String[] args) {
//        MyThreadPool threadPool = new
//                MyThreadPool(1,1000,
//                TimeUnit.MILLISECONDS,1,
//
//                );
//        for(int i =0;i<3;++i) {
//            int j = i;
//            threadPool.execute(()->{
//                try {
//                    Thread.sleep(1000L);
//                } catch (InterruptedException e) {
//                    e.printStackTrace();
//                }
//                log.debug("{}",j);
//            });
//        }
//    }

}
